<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html>
<html lang="zh-cn">
    
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>
            省钱啦
        </title>
        <meta name="keywords" content="<?php echo ($seo_keywords); ?>" />
        <meta name="description" content="<?php echo ($seo_description); ?>" />
        <meta name="applicable-device" content="pc,mobile">
        <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="__CSS__/glide.css">
        <link rel="stylesheet" type="text/css" href="__CSS__/style.css">
        <script src="__JS__/jquery.min.js" type="text/javascript">
        </script>
        <script src="__JS__/jquery.glide.js" type="text/javascript">
        </script>
        <script src="__JS__/bootstrap.js" type="text/javascript">
        </script>
        <!--[if lt IE 9]>
            <script src="__JS__/html5shiv.min.js" type="text/javascript">
            </script>
            <script src="__JS__/respond.min.js" type="text/javascript">
            </script>
        <![endif]-->
        <link rel="stylesheet" type="text/css" href="__CSS__/lightbox.css">
        <script src="__JS__/lightbox.js" type="text/javascript">
        </script>
    </head>
    <header>
        <header>
            <div class="topBox">
                <div class="borderBottom">
                    <div class="container">
                        <div class="row">
                            <div class="welcomeBox">
                                欢迎光临<?php echo ($site_name); ?>
                            </div>
                            <div class="topContactBox">
                                <img src="__CSS__/tel.png" />
                                <a>
                                    <?php echo ($site_telephone); ?>
                                </a>
                                <img src="__CSS__/mail.png" />
                                <a>
                                    <?php echo ($site_email); ?>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- Fixed navbar -->
            <nav class="navbar navbar-static-top navbar-default">
                <div class="container">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                            <span class="sr-only">
                                Toggle navigation
                            </span>
                            <span class="icon-bar">
                            </span>
                            <span class="icon-bar">
                            </span>
                            <span class="icon-bar">
                            </span>
                        </button>
                        <a class="navbar-brand" href="/">
                            <img src="<?php echo ($site_logo); ?>" alt="<?php echo ($site_name); ?>" />
                        </a>
                    </div>
                    <div id="navbar" class="navbar-collapse collapse">
                        <ul class="nav navbar-nav">
                            <li>
                                <a href="/">
                                    网站首页
                                </a>
                            </li>
                            <?php
 $count=0; foreach ($Cats as $keyy=>$vy) { if($vy["ismenu"]==1 && intval(0)==$vy["parentid"]) { $count++; } } $n=0; foreach ($Cats as $key=>$r) { if( $r['ismenu']==1 && intval(0)==$r["parentid"]) { ++$n; ?><li class="dropdown">
                                    <?php if($max_parent_catid==$r['id'] || $catid==$r['id']) : ?>
                                    <a href="<?php echo ($r["url"]); ?>" target="_self" class="dropdown-toggle selecteded" data-toggle="dropdown">
                                        <?php echo ($r["catname"]); ?>
                                    </a>
                                    <a href="#" id="app_menudown" class="dropdown-toggle" data-toggle="dropdown"
                                    role="button" aria-expanded="false">
                                        <span class="glyphicon glyphicon-menu-down btn-xs">
                                        </span>
                                    </a>
                                    <?php else :?>
                                    <a href="<?php echo ($r["url"]); ?>" target="_self" class="dropdown-toggle" data-toggle="dropdown">
                                        <?php echo ($r["catname"]); ?>
                                    </a>
                                    <a href="#" id="app_menudown" class="dropdown-toggle" data-toggle="dropdown"
                                    role="button" aria-expanded="false">
                                        <span class="glyphicon glyphicon-menu-down btn-xs">
                                        </span>
                                    </a>
                                    <?php endif;?> <?php if($r['child']=="1") : ?>
                                    <ul class="dropdown-menu" role="menu">
                                        <?php
 $count=0; foreach ($Cats as $keyy=>$vy) { if($vy["ismenu"]==1 && intval($r['id'])==$vy["parentid"]) { $count++; } } $n=0; foreach ($Cats as $key=>$rr) { if( $rr['ismenu']==1 && intval($r['id'])==$rr["parentid"]) { ++$n; ?><li>
                                                <a class='' target='_self' href="<?php echo ($rr["url"]); ?>">
                                                    <?php echo ($rr["catname"]); ?>
                                                </a>
                                            </li><?php
 } } ?>
                                    </ul>
                                    <?php endif;?>
                                </li><?php
 } } ?>
                        </ul>
                    </div>
                    <!--/.nav-collapse -->
                </div>
            </nav>
        </header>
        <?php if(!empty($isIndex)) : ?>
        <div class="banner">
    <div class="slider">
        <ul class="slider__wrapper">
            <?php $slide = getSlide(1); ?>
            <?php if(is_array($slide)): $i = 0; $__LIST__ = $slide;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$r): $mod = ($i % 2 );++$i;?><li class="slider__item">
                    <a href="<?php echo ($r['link']); ?>">
                        <img class='img' src="<?php echo ($r['pic']); ?>" alt="<?php echo ($r['title']); ?>" />
                        <img class='mobileimg' src="<?php echo ($r['pic']); ?>" />
                    </a>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
</div>
<script>
    var glide = $('.slider').glide();
</script>
        <?php else :?>
        <div class="banner">
            <div class="slider">
                <ul class="slider__wrapper">
                    <li class="slider__item">
                        <a target="_self" title="2" href="#" style="background-image:url(<?php if($Cats[$max_parent_catid]['image']) : ?>
                        <?php echo ($Cats[$max_parent_catid]['image']); else : echo ($Cats[$catid]['image']); ?>
                        <?php endif;?>)">
                            <img class='img' src="<?php if($Cats[$max_parent_catid]['image']) : ?>
                            <?php echo ($Cats[$max_parent_catid]['image']); else : echo ($Cats[$catid]['image']); ?>
                            <?php endif;?>" />
                            <img class='mobileimg' src="<?php if($Cats[$max_parent_catid]['image']) : ?>
                            <?php echo ($Cats[$max_parent_catid]['image']); else : echo ($Cats[$catid]['image']); ?>
                            <?php endif;?>" />
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <?php endif;?>
<body>
    <div class="container threeImgBox">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
                <?php
 $_result=M("Article")->field("id,catid,url,title,title_style,keywords,description,thumb,createtime")->where("createtime<=1543218781 AND status=1  AND catid=63 AND posid like '%-1-%'")->order("id desc")->limit("6")->select(); if ($_result) { $i=0; $total = count($_result); foreach($_result as $key=>$r) { ++$i; $mod = ($i % 2 ); ?><div class="col-xs-12 col-sm-4 col-md-4 keyweb">
                        <img src="<?php echo ($r["thumb"]); ?>" />
                        <div class="content">
                            <h4>
                                <?php echo ($r["title"]); ?>
                            </h4>
                            <p>
                                <?php echo ($r["description"]); ?>
                            </p>
                        </div>
                    </div><?php
 } } ?>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="productBox">
                    <div class="titleBar homeTitleBar">
                        <h5>
                            平台信息
                        </h5>
                        <span>
                            IMPORTANT
                        </span>                   
                    </div>
                    <div class="list">
                        <?php
 $_result=M("Article")->field("id,catid,url,title,title_style,keywords,description,thumb,createtime")->where("createtime<=1543218781 AND status=1  AND catid=7 AND posid like '%-1-%'")->order("id desc")->limit("4")->select(); if ($_result) { $i=0; $total = count($_result); foreach($_result as $key=>$r) { ++$i; $mod = ($i % 2 ); ?><div class="col-xs-6 col-sm-4 col-md-3 col-mm-6 productImg">
                                <a title="<?php echo (str_cut($r["title"],15)); ?>" href='<?php echo ($r["url"]); ?>'>
                                    <span class="imgLink-hover">
                                        <span class="hover-link">
                                        </span>
                                    </span>
                                    <img src="<?php echo ($r["thumb"]); ?>" alt="<?php echo (str_cut($r["title"],15)); ?>">
                                </a>
                                <a class="productTitle" href="<?php echo ($r["url"]); ?>" title="<?php echo (str_cut($r["title"],15)); ?>">
                                    <?php echo (str_cut($r["title"],15)); ?>
                                </a>
                            </div><?php
 } } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="aboutBoxBg" style="background-image: url(<?php echo ($site_about); ?>)">
    </div>
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="indexNavigationGroup" id="classification">
                    <div class="navigationBox">
                        <div class="titleBar homeTitleBar">
                            <h5>
                                产品分类
                            </h5>
                        </div>
                        <div class="list">
                            <ul id="firstpane">
                                <?php
 $count=0; foreach ($Cats as $keyy=>$vy) { if($vy["ismenu"]==1 && intval(7)==$vy["parentid"]) { $count++; } } $n=0; foreach ($Cats as $key=>$r) { if( $r['ismenu']==1 && intval(7)==$r["parentid"]) { ++$n; ?><li>
                                        <a class='' target='_self' href='<?php echo ($r["url"]); ?>'>
                                            <?php echo ($r["catname"]); ?>
                                        </a>
                                        <span>
                                            +
                                        </span>
                                        <ul>
                                            <?php
 $count=0; foreach ($Cats as $keyy=>$vy) { if($vy["ismenu"]==1 && intval($r['id'])==$vy["parentid"]) { $count++; } } $n=0; foreach ($Cats as $key=>$rr) { if( $rr['ismenu']==1 && intval($r['id'])==$rr["parentid"]) { ++$n; ?><li>
                                                    <a class='' target='_self' href='<?php echo ($rr["url"]); ?>'>
                                                        <?php echo ($rr["catname"]); ?>
                                                    </a>
                                                    <ul>
                                                    </ul>
                                                </li><?php
 } } ?>
                                        </ul>
                                    </li><?php
 } } ?>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="newsBox">
                    <div class="titleBar homeTitleBar">
                        <h5>
                            热点新闻
                        </h5>
                        <span>
                            NEWS CENTER
                        </span>
                    </div>
                    <div class="indexNewsList">
                        <div class="col-xs-12 col-sm-4 col-md-4">
                            <div class="imgNewsBox">
                                <a href="#" target="_blank">
                                    <img src="<?php echo ($site_gsxw); ?>" alt="" />
                                </a>
                            </div>
                            <ul class="newsList">
                                <?php
 $_result=M("Article")->field("id,catid,url,title,title_style,keywords,description,thumb,createtime")->where("createtime<=1543218781 AND status=1  AND catid=67 AND posid like '%-1-%'")->order("id desc")->limit("4")->select(); if ($_result) { $i=0; $total = count($_result); foreach($_result as $key=>$r) { ++$i; $mod = ($i % 2 ); ?><li>
                                        <span>
                                            [公司新闻]
                                        </span>
                                        <a href="<?php echo ($r["url"]); ?>" title="<?php echo ($r["title"]); ?>">
                                            <?php echo (str_cut($r["title"],50)); ?>
                                        </a>
                                    </li><?php
 } } ?>
                            </ul>
                        </div>
                        <div class="col-xs-12 col-sm-4 col-md-4">
                            <div class="imgNewsBox">
                                <a href="#" target="_blank">
                                    <img src="<?php echo ($site_hyxw); ?>" alt="" />
                                </a>
                            </div>
                            <ul class="newsList">
                                <?php
 $_result=M("Article")->field("id,catid,url,title,title_style,keywords,description,thumb,createtime")->where("createtime<=1543218781 AND status=1  AND catid=68 AND posid like '%-1-%'")->order("id desc")->limit("4")->select(); if ($_result) { $i=0; $total = count($_result); foreach($_result as $key=>$r) { ++$i; $mod = ($i % 2 ); ?><li>
                                        <span>
                                            [行业新闻]
                                        </span>
                                        <a href="<?php echo ($r["url"]); ?>" title="<?php echo ($r["title"]); ?>">
                                            <?php echo (str_cut($r["title"],50)); ?>
                                        </a>
                                    </li><?php
 } } ?>
                            </ul>
                        </div>
                        <div class="col-xs-12 col-sm-4 col-md-4">
                            <div class="imgNewsBox">
                                <a href="#" target="_blank">
                                    <img src="<?php echo ($site_kjcx); ?>" alt="" />
                                </a>
                            </div>
                            <ul class="newsList">
                                <?php
 $_result=M("Article")->field("id,catid,url,title,title_style,keywords,description,thumb,createtime")->where("createtime<=1543218781 AND status=1  AND catid=66 AND posid like '%-1-%'")->order("id desc")->limit("4")->select(); if ($_result) { $i=0; $total = count($_result); foreach($_result as $key=>$r) { ++$i; $mod = ($i % 2 ); ?><li>
                                        <span>
                                            [科技创新]
                                        </span>
                                        <a href="<?php echo ($r["url"]); ?>" title="<?php echo ($r["title"]); ?>">
                                            <?php echo (str_cut($r["title"],50)); ?>
                                        </a>
                                    </li><?php
 } } ?>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <nav class="navbar-default navbar-fixed-bottom footer_nav">
    <div class="foot_nav btn-group dropup">
        <a class="dropdown-toggle" href="/">
            <span class="glyphicon glyphicon-share btn-lg" aria-hidden="true">
            </span>
            首页
        </a>
    </div>
    <div class="foot_nav">
        <a href="tel:<?php echo ($site_phone); ?>">
            <span class="glyphicon glyphicon-phone btn-lg" aria-hidden="true">
            </span>
            手机
        </a>
    </div>
    <div class="foot_nav">
        <a id="gotocate" href="#">
            <span class="glyphicon glyphicon-th-list btn-lg" aria-hidden="true">
            </span>
            分类
        </a>
    </div>
    <div class="foot_nav">
        <a id="gototop" href="#">
            <span class="glyphicon glyphicon-circle-arrow-up btn-lg" aria-hidden="true">
            </span>
            顶部
        </a>
    </div>
</nav>
<footer>
    <div class="container">
        <div class="row">
            <div class="col-xs-12 col-sm-4 col-md-4">
                <div class="footerLogo">
                    <img src="<?php echo ($site_footlogo); ?>" />
                </div>
                <div class="footerContact">
                    <?php echo ($site_address); ?>
                    <br />
                    <?php echo ($site_telephone); ?>
                    <br />
                    <?php echo ($site_email); ?>
                    <br />
                </div>
            </div>
            <div class="col-xs-12 col-sm-4 col-md-4">
                <div class="quikLink">
                    <div class="footerTitle">
                        快速链接
                    </div>
                    <div class="footerContent">
                        <?php
 $count=0; foreach ($Cats as $keyy=>$vy) { if($vy["ismenu"]==1 && intval(0)==$vy["parentid"]) { $count++; } } $n=0; foreach ($Cats as $key=>$r) { if( $r['ismenu']==1 && intval(0)==$r["parentid"]) { ++$n; ?><a href="<?php echo ($r["url"]); ?>" }>
                                <?php echo ($r["catname"]); ?>
                            </a><?php
 } } ?>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-4 col-md-4" id="footerSearch">
                <div class="footerTitle">
                    站内搜索
                </div>
                <div class="footerContent">
                    <div class="searchBox">
                        <form id="searchform" action="/?m=search" method="post">
                            <input type="text" name="keyword" value="产品搜索" onFocus="this.value=''"
                            onBlur="if(!value){value=defaultValue;}">
                            <button onclick="javascript:searchform.submit();">
                                搜索
                            </button>
                        </form>
                    </div>
                    <div class="collectBox">
                        <span>
                            关注我们
                        </span>
                        <a class="weibo" href="http://weibo.com/u/<?php echo ($site_weibo); ?>">
                            &nbsp;
                        </a>
                        <a class="weixin" href="javascript:showWechatQR()">
                            &nbsp;
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="copyright">
        <p style="white-space:normal;text-align:center;">
            CopyRight <?php echo ($site_copyright); ?>&nbsp;<?php echo ($site_approve); ?>&nbsp; 地址：<?php echo ($site_address); ?>
            &nbsp;电话:<?php echo ($site_telephone); ?> &nbsp;
        </p>
    </div>
</footer>
<!-- 关注微信模态框（Modal）start -->
<div class="modal fade" id="wechatModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="border: 0px;">
            <div class="modal-header">
                请扫描二维码关注我们
            </div>
            <div class="modal-body" style="text-align: center">
                <img src="<?php echo ($site_wzqrcode); ?>" alt="" />
            </div>
            <div class="modal-footer" style="text-align: center;">
                <button type="button" class="btn btn-primary" data-dismiss="modal">
                    关闭
                </button>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function showWechatQR() {
        $("#wechatModal").modal("show")
    }
</script>
<!-- 关注微信模态框（Modal）end -->
<script type="text/javascript">
    function mShare() {
        $("#mShareBox").toggle();
        $("#serviceBox").hide();
    }
    if ($(".banner .slider__wrapper li").length == 0) {
        $(".banner").addClass("emptyBanner");
    }
    function showService() {
        $("#mShareBox").hide();
        $("#serviceBox").toggle();
    }
</script>
<?php echo W('Kefu');?>
</footer>
<link rel="stylesheet" type="text/css" href="__CSS__/chat.css" />
<script>
    $('#kefu .kefuClose').click(function() {
        $('#kefu .kefuLeft').animate({
            width: '30px'
        },
        500);
        $('#kefu .kefuRight').animate({
            width: 0
        },
        100);
    });
    $('.kefuLeft').click(function() {
        $(this).animate({
            width: 0
        },
        100);
        $('.kefuRight').animate({
            width: '154px'
        },
        100);
    });
</script>
<script src="__JS__/common.js" type="text/javascript">
</script>
<script type="text/javascript">
    function mShare() {
        $("#mShareBox").toggle();
        $("#serviceBox").hide();
    }
    if ($(".banner .slider__wrapper li").length == 0) {
        $(".banner").addClass("emptyBanner");
    }
    function showService() {
        $("#mShareBox").hide();
        $("#serviceBox").toggle();
    }
</script>
<!--访问统计-->
<script>
    window.onload = function()
    {
        $.ajax({
            url:"<?php echo U('Api/Hitstall/index');?>",
        });
    }
</script>
</html>
</body>